
import axios from 'axios';

/**
 * 维修评价
 */
export class NoticeCatUserService {
    // 分页查询列表
    static findNoticeCatUsers (queryParams) {
        return axios({
            url: '/repair/repairManagement/NoticeCatUser/findNoticeCatUsers',
            method: 'POST',
            data: queryParams
        });
    }

    //根据ID查询指定的维修评价
    static findNoticeCatUser (noticeCatUserId) {
        const query = {
            noticeCatUserId
        }
        return axios({
            url: '/repair/repairManagement/NoticeCatUser/findNoticeCatUser',
            method: 'POST',
            params: query,
        });
    }

    //根据ID查询指定的维修评价(包含外键名称)
    static findNoticeCatUserForView (noticeCatUserId) {
        const query = {
            noticeCatUserId
        }
        return axios({
            url: '/repair/repairManagement/NoticeCatUser/findNoticeCatUserForView',
            method: 'POST',
            params: query,
        });
    }

    //根据ID查询指定的维修评价(包含外键名称)
    static findNoticeCatUserForEdit (noticeCatUserId) {
        const query = {
            noticeCatUserId
        }
        return axios({
            url: '/repair/repairManagement/NoticeCatUser/findNoticeCatUserForEdit',
            method: 'POST',
            params: query,
        });
    }

    //根据ID查询指定的维修评价(只提取ID 和 Name)
    static findNoticeCatUsersWithIdNameById (noticeCatUserId) {
        const query = {
            noticeCatUserId
        }
        return axios({
            url: '/repair/repairManagement/NoticeCatUser/findNoticeCatUsersWithIdNameById',
            method: 'POST',
            params: query,
        });
    }

    //根据名称查询维修评价集合(只提取ID 和 Name)
    static findNoticeCatUsersWithIdNameByName (noticeCatUserName) {
        const query = {
            noticeCatUserName
        }
        return axios({
            url: '/repair/repairManagement/NoticeCatUser/findNoticeCatUsersWithIdNameByName',
            method: 'POST',
            params: query,
        });
    }

    //新增保存维修评价
    static saveNoticeCatUser (noticeCatUser) {
        const query = {}
        return axios({
            url: '/repair/repairManagement/NoticeCatUser/saveNoticeCatUser',
            method: 'POST',
            params: query,
            data: noticeCatUser
        });
    }

    //修改保存维修评价
    static updateNoticeCatUser (noticeCatUser) {
        const query = {}
        return axios({
            url: '/repair/repairManagement/NoticeCatUser/updateNoticeCatUser',
            method: 'POST',
            params: query,
            data: noticeCatUser
        });
    }

    //根据ID查询指定的维修评价(只提取ID 和 Name)
    static deleteNoticeCatUser (noticeCatUserId) {
        const query = {
            noticeCatUserId
        }
        return axios({
            url: '/repair/repairManagement/NoticeCatUser/deleteNoticeCatUser',
            method: 'POST',
            params: query,
        });
    }
}
